﻿namespace TomatoBreak.UnitSpecs.Controllers
{
    using System.Web.Mvc;

    using Machine.Specifications;

    using Web;

    [Subject(typeof(HomeController))]
    public class when_home_index_is_requested
    {
        static HomeController controller;
        static ViewResult result;

        Establish context = () => controller = new HomeController();

        Because of = () => result = (ViewResult)controller.Index();

        It should_return_default_view = () => result.ViewName.ShouldBeEmpty();
    }
}